package com.stx.chat.service.impl;

import com.stx.chat.dao.ChatDao;
import com.stx.chat.entity.Chat;
import com.stx.chat.entity.User;
import com.stx.chat.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChatServiceImpl implements ChatService {

    @Autowired
    ChatDao chatDao;
    @Override
    public Chat selectOneChat() {
        return chatDao.selectOneChat();
    }

    @Override
    public List<User> memberList(Integer id) {
        return chatDao.memberList(id);
    }
}
